package com.project.web.order.controller.app;

import com.project.common.core.utils.exception.Result;
import com.project.feign.client.SystemServiceClient;
import com.project.feign.vo.UserInfoVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 会员h5订单控制器
 *
 * @Author: abc
 * @Date: 2020-04-08 00:24
 */
@Api(tags = "webAPI")
@RestController("orderServiceMbrH5OrderController")
@RequestMapping("/order/order")
public class OrderController extends com.project.web.order.cßßßontroller.common.BaseController {


    @Resource
    private SystemServiceClient systemServiceClient;




    /**
     * feign
     *
     * @return
     */
    @ApiOperation(value = "获取sys 数据")
    @GetMapping(value = "/getUser")
    public Result<UserInfoVO> getUser() {

        Result<UserInfoVO> byUserId = systemServiceClient.getByUserId("110");
        return byUserId;
    }
}
